import Vue from 'vue'
import App from './App.vue'
import router from './router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "@/assets/css/common.css";
import HeaderS from "@/components/Header.vue"
import FooterS from "@/components/Footer.vue"
import Nodata from "@/components/Nodata.vue"
import store from './store/index';
import VueI18n from 'vue-i18n';
import { allRequest } from './apis'
import 'swiper/dist/css/swiper.css';
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(VueI18n);
export const i18n = new VueI18n({
  locale: sessionStorage.getItem('locale') || 'zh',
  messages: {
    zh: require('./i18n/lang/cn'),
    en: require('./i18n/lang/en'), 
    ja: require('./i18n/lang/ja'),
    ko: require('./i18n/lang/ko'),
    ru: require('./i18n/lang/ru'),

  }
});
Vue.prototype.$api = allRequest;
Vue.component('HeaderS', HeaderS);
Vue.component('FooterS', FooterS);
Vue.component('Nodata', Nodata);
new Vue({
  el: '#app',
  router,
  store,
  i18n,  // 引入国际化
  render: h => h(App)
}).$mount('#app')
